<%@ page contentType="text/html;charset=UTF-8"%>
<%@ include file="/common/taglibs.jsp"%>
<html>
<head>
<title>帐号管理</title>
<%@ include file="/common/meta.jsp"%>
</head>

<body>
<div id="content"><s:if test="id == null">创建用户</s:if> <s:else>修改用户</s:else>
<s:form action="user!save" method="post">
	<input type="hidden" name="id" value="${id}">
	<table class="wwFormTable">
		<tr>
			<td><label> 登录名: </label></td>
			<td><input type="text" name="loginName" size="40"
				value="${loginName}" /></td>
		</tr>
		<tr>
			<td><label> 用户名: </label></td>
			<td><input type="text" name="name" size="40" value="${name}" />
			</td>
		</tr>
		<tr>
			<td><label> 邮箱: </label></td>
			<td><input type="text" name="email" size="40" value="${email}" />
			</td>
		</tr>
		<tr>
			<td><label> 角色: </label></td>
			<td>${roleNames}</td>
		<tr>
			<td colspan="2">
			<input type="submit" id="user_0" value="提交" />
			&nbsp; <input type="button" value="取消" onclick="history.back()" />
			</td>
		</tr>
	</table>
</s:form>
</div>
</body>
</html>